package itanty.aop3;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @date 2025/9/23
 */
public class LogAdvice implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {
//        System.out.println("在" + new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss").format(new Date()) + "访问了" + method.getName() + "方法,方法的参数列表为:" + Arrays.toString(args));
    }
}
